package net.xdclass.service;

import net.xdclass.model.ProductDO;
import net.xdclass.model.ProductMessage;
import net.xdclass.request.LockProductRequest;
import net.xdclass.util.JsonData;
import net.xdclass.vo.ProductVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 二当家小D
 * @since 2021-06-02
 */
public interface ProductService  {

    Map<String, Object> page(int page, int size);

    ProductVO detail(long productId);

    List<ProductVO> selectProductByIdList(List<Long> productIdList);

    JsonData lockProducts(LockProductRequest lockProductRequest);

    boolean releaseStockRecord(ProductMessage productMessage);
}
